package com.sayimo.maker.commons.utils;

import java.io.IOException;
import java.util.Properties;

import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;

/**
 * @project: union-commons
 * @package: com.sayimo.union.common.utils
 * @typeName: PropertiesUtils
 * @author: chenpy
 * @Title:
 * @Description: 
 * 
 * @date: 2016年12月3日
 */
public class PropertiesUtils extends PropertyPlaceholderConfigurer {
	
	private static Properties properties;
	
	/**
	 * @package com.sayimo.union.common.utils
	 * @author chenpy
	 * @title:
	 * @description: 
	 * @param 
	 * @throws 
	 * @return String
	 * 
	 * @date 2016年12月3日
	 */
	public static String getValue(String key){
		return properties.getProperty(key);
	}

	protected Properties mergeProperties() throws IOException {
		properties =  super.mergeProperties();
		return properties;
	}
}
